package hashTable;

import domin.Student;

import java.util.Iterator;

public class hashTableTest {
    public static void main(String[] args) {
        //MyLinkedList<Student> list = new MyLinkedList<>();
        MyHashTable<Student> hashTable = new MyHashTable<>();
        char cId='1';
        char cName='a';
        int age=20;
        for(int i=0;i<9;i++){
            Student stu = new Student(cId+"",age,cName+"");
            //list.add(stu.getId(),stu);
            hashTable.add(stu.getId(),stu);
            cId++;
            cName++;
            age++;
        }
        /*list.delete("5");
        Iterator<Student> it = list.iterator();
        while(it.hasNext()){
            Student stu = it.next();
            System.out.println(stu);
        }
        Student stu = list.search("7");
        System.out.println(stu);*/
        Student stu = hashTable.search("7");
        System.out.println(stu);
    }
}
